// 旅程卡片组件

Component({
  properties: {
    itemData: Object,  // 旅程项目数据
  },
  data: {},
  methods: {
    // 点击卡片，跳转至旅程详情页
    onClickCard() {
      wx.navigateTo({
        url: '/pages/travel/detail/detail?id=' + this.data.itemData.id,
      })
    },

    // 点击设置按钮，跳转至旅程设置页
    onClickSetting() {
      wx.navigateTo({
        url: '/pages/travel/travel-setting/travel-setting?id=' + this.data.itemData.id,
      })
    },
  },
})
